//
//  TaskView.h
//  GuoBuGaForIphone
//
//  Created by zhangwo on 16/10/31.
//  Copyright © 2016年 GuoBuGa. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TaskCollectionViewCell.h"

//任务按钮
@class TaskView;
@protocol TaskViewDelegate <NSObject>
@optional
- (void)taskView:(TaskView *)taskView didSelectedAtItem:(NSDictionary *)data;

@end

@interface TaskView : UICollectionView <UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>{
    NSArray *_categoryList;
    CGFloat _cellWidth;
}
@property(nonatomic,assign)id<TaskViewDelegate>touchDelegate;
- (instancetype)initWithFrame:(CGRect)frame;
- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout;

@end
